package com.zhiche.lisa.bms.dao.model.increment;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 自增编码信息表
 * </p>
 *
 * @author liuanshun
 * @since 2018-11-20
 */
@TableName("lisa_increment_code")
public class IncrementCode extends Model<IncrementCode> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * code类型名
     */
	@TableField("code_type_name")
	private String codeTypeName;
    /**
     * 自增code值
     */
	@TableField("increment_code")
	private String incrementCode;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCodeTypeName() {
		return codeTypeName;
	}

	public void setCodeTypeName(String codeTypeName) {
		this.codeTypeName = codeTypeName;
	}

	public String getIncrementCode() {
		return incrementCode;
	}

	public void setIncrementCode(String incrementCode) {
		this.incrementCode = incrementCode;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "IncrementCode{" +
			", id=" + id +
			", codeTypeName=" + codeTypeName +
			", incrementCode=" + incrementCode +
			"}";
	}
}
